﻿<Application   
  x:Class="Falafel.App"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:app="clr-namespace:Falafel;assembly=Falafel"
  xmlns:res="clr-namespace:Falafel.Services.Resources;assembly=Falafel.Services"
  xmlns:svc="clr-namespace:Falafel.Services;assembly=Falafel.Services"  
  xmlns:appsvc="clr-namespace:System.ServiceModel.DomainServices.Client.ApplicationServices;assembly=System.ServiceModel.DomainServices.Client.Web"  
  Startup="Application_Startup"
  UnhandledException="Application_UnhandledException">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Assets/Styles.xaml"/>
                <ResourceDictionary Source="Assets/DialogStyles.xaml"/>
                <ResourceDictionary>
                    <res:ResourceWrapper x:Key="ResourceWrapper" />
                    <app:NotOperatorValueConverter x:Key="NotOperatorValueConverter" />
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
            <svc:WebContext x:Key="wcGlobal">
                <svc:WebContext.Authentication>
                    <appsvc:FormsAuthentication 
                    DomainContextType="Falafel.Services.Web.AuthenticationContext, Falafel.Services, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
                </svc:WebContext.Authentication>
            </svc:WebContext>
            <app:VisibilityConverter x:Key="visibilityConverter" />
            <app:DataFormModeConverter x:Key="dataFormModeConverter" />
            <app:DataFormModeConverter x:Key="dataFormModeInverseConverter" Inverse="True"/>
            <app:NotBlankNumberFromTextConverter x:Key="NotBlankNumberFromTextConverter" />
        </ResourceDictionary>                
    </Application.Resources>

</Application>